package com.adderis.soft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.adderis.soft.domain.dao.ISolubiliteDao;
import com.adderis.soft.domain.model.Solubilite;
import com.adderis.soft.service.ISolubiliteBo;

@Service("solubiliteService")
@Transactional(propagation = Propagation.REQUIRED, readOnly = true)
public class SolubiliteServiceImpl implements ISolubiliteBo {


	@Autowired
	private ISolubiliteDao solubiliteDao;

	@Transactional(readOnly = false)
	public void persist(Solubilite transientSolubilite) {
		solubiliteDao.persist(transientSolubilite);

	}

	@Transactional(readOnly = false)
	public void remove(Solubilite persistentSolubilite) {
		solubiliteDao.remove(persistentSolubilite);

	}

	@Transactional(readOnly = false)
	public Solubilite merge(Solubilite detachedSolubilite) {

		return solubiliteDao.merge(detachedSolubilite);
	}
	
	@Transactional(readOnly = false)
	public void remove(Integer id) {
		solubiliteDao.remove(id);

	}

	public Solubilite findById(Integer id) {
		return solubiliteDao.findById(id);
	}

	public List<Solubilite> findAll() {
		return solubiliteDao.findAll();
	}

	public List<Solubilite> search(String searchString) {
		return solubiliteDao.search(searchString);
	}

	

}
